package com.yingpai.fitness.entity.food;

import java.util.List;

/**
 * Created by Administrator on 2018/4/25.
 */

public class MaterialBean {

    /**
     * result : success
     * msg : 查询成功
     * map : {"dietDetail":{"id":4,"dietId":1,"dietName":"训练前后营养餐","dietDetailName":"快煮燕麦粥","energy":"316kcal","photoUrl":"http://192.168.3.254:8096/img/diet/20180510/7ee05c18-7bc9-472f-a83b-71d8e6250cc8t016007d62f4087834f.jpg","properties":"早餐组合","isAbandoned":true,"createTime":"2018-05-10 15:44","dicDietCategoryId":1,"dicDietCategoryName":"早餐","isRecommended":true,"commonPrice":1200,"memberPrice":1000,"content":"<p><img src=\"http://localhost:8096/manager-web/../ueditor/upload/image/20180510/1525938246594067597.jpg\" title=\"1525938246594067597.jpg\" alt=\"t016007d62f4087834f.jpg\"/><\/p><p>步骤：<br/><\/p><p style=\"margin-top:0;margin-right:0;margin-bottom:0;margin-left:0;padding:0 0 0 0 ;line-height:25px\"><span style=\";font-family:宋体;font-size:14px\">1.<\/span><span style=\";font-family:宋体;font-size:14px\"><span style=\"font-family:宋体\">将牛奶倒入小煮锅中，小火煮沸<\/span><\/span><\/p><p style=\"margin-top:0;margin-right:0;margin-bottom:0;margin-left:0;padding:0 0 0 0 ;text-align:justify;text-justify:inter-ideograph;line-height:25px\"><span style=\";font-family:宋体;font-size:14px\">2.<\/span><span style=\";font-family:宋体;font-size:14px\"><span style=\"font-family:宋体\">倒入燕麦闷煮<\/span> 30 秒<\/span><\/p><p style=\"margin-top:0;margin-right:0;margin-bottom:0;margin-left:0;padding:0 0 0 0 \"><span style=\";font-family:宋体;font-size:14px\">3.<\/span><span style=\";font-family:宋体;color:rgb(31,33,36);font-size:14px\"><span style=\"font-family:宋体\">倒入小碗并撒入坚果即可<\/span><\/span><\/p><p><br/><\/p>"},"componentList":[{"id":70,"dietDetailId":4,"propertyName":"牛奶","propertyAmount":"250g","propertyCategory":1},{"id":71,"dietDetailId":4,"propertyName":"燕麦","propertyAmount":"30g","propertyCategory":1},{"id":72,"dietDetailId":4,"propertyName":"腰果","propertyAmount":"10g","propertyCategory":1},{"id":73,"dietDetailId":4,"propertyName":"碳水","propertyAmount":"35g","propertyCategory":2},{"id":74,"dietDetailId":4,"propertyName":"蛋白质","propertyAmount":"13g","propertyCategory":2},{"id":75,"dietDetailId":4,"propertyName":"脂肪","propertyAmount":"13g","propertyCategory":2}]}
     */

    private String result;
    private String msg;
    private MapData map;

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public MapData getMap() {
        return map;
    }

    public void setMap(MapData map) {
        this.map = map;
    }

    public static class MapData {
        /**
         * dietDetail : {"id":4,"dietId":1,"dietName":"训练前后营养餐","dietDetailName":"快煮燕麦粥","energy":"316kcal","photoUrl":"http://192.168.3.254:8096/img/diet/20180510/7ee05c18-7bc9-472f-a83b-71d8e6250cc8t016007d62f4087834f.jpg","properties":"早餐组合","isAbandoned":true,"createTime":"2018-05-10 15:44","dicDietCategoryId":1,"dicDietCategoryName":"早餐","isRecommended":true,"commonPrice":1200,"memberPrice":1000,"content":"<p><img src=\"http://localhost:8096/manager-web/../ueditor/upload/image/20180510/1525938246594067597.jpg\" title=\"1525938246594067597.jpg\" alt=\"t016007d62f4087834f.jpg\"/><\/p><p>步骤：<br/><\/p><p style=\"margin-top:0;margin-right:0;margin-bottom:0;margin-left:0;padding:0 0 0 0 ;line-height:25px\"><span style=\";font-family:宋体;font-size:14px\">1.<\/span><span style=\";font-family:宋体;font-size:14px\"><span style=\"font-family:宋体\">将牛奶倒入小煮锅中，小火煮沸<\/span><\/span><\/p><p style=\"margin-top:0;margin-right:0;margin-bottom:0;margin-left:0;padding:0 0 0 0 ;text-align:justify;text-justify:inter-ideograph;line-height:25px\"><span style=\";font-family:宋体;font-size:14px\">2.<\/span><span style=\";font-family:宋体;font-size:14px\"><span style=\"font-family:宋体\">倒入燕麦闷煮<\/span> 30 秒<\/span><\/p><p style=\"margin-top:0;margin-right:0;margin-bottom:0;margin-left:0;padding:0 0 0 0 \"><span style=\";font-family:宋体;font-size:14px\">3.<\/span><span style=\";font-family:宋体;color:rgb(31,33,36);font-size:14px\"><span style=\"font-family:宋体\">倒入小碗并撒入坚果即可<\/span><\/span><\/p><p><br/><\/p>"}
         * componentList : [{"id":70,"dietDetailId":4,"propertyName":"牛奶","propertyAmount":"250g","propertyCategory":1},{"id":71,"dietDetailId":4,"propertyName":"燕麦","propertyAmount":"30g","propertyCategory":1},{"id":72,"dietDetailId":4,"propertyName":"腰果","propertyAmount":"10g","propertyCategory":1},{"id":73,"dietDetailId":4,"propertyName":"碳水","propertyAmount":"35g","propertyCategory":2},{"id":74,"dietDetailId":4,"propertyName":"蛋白质","propertyAmount":"13g","propertyCategory":2},{"id":75,"dietDetailId":4,"propertyName":"脂肪","propertyAmount":"13g","propertyCategory":2}]
         */

        private DietDetailData dietDetail;
        private List<ComponentListData> componentList;

        public DietDetailData getDietDetail() {
            return dietDetail;
        }

        public void setDietDetail(DietDetailData dietDetail) {
            this.dietDetail = dietDetail;
        }

        public List<ComponentListData> getComponentList() {
            return componentList;
        }

        public void setComponentList(List<ComponentListData> componentList) {
            this.componentList = componentList;
        }

        public static class DietDetailData {
            /**
             * id : 4
             * dietId : 1
             * dietName : 训练前后营养餐
             * dietDetailName : 快煮燕麦粥
             * energy : 316kcal
             * photoUrl : http://192.168.3.254:8096/img/diet/20180510/7ee05c18-7bc9-472f-a83b-71d8e6250cc8t016007d62f4087834f.jpg
             * properties : 早餐组合
             * isAbandoned : true
             * createTime : 2018-05-10 15:44
             * dicDietCategoryId : 1
             * dicDietCategoryName : 早餐
             * isRecommended : true
             * commonPrice : 1200
             * memberPrice : 1000
             * content : <p><img src="http://localhost:8096/manager-web/../ueditor/upload/image/20180510/1525938246594067597.jpg" title="1525938246594067597.jpg" alt="t016007d62f4087834f.jpg"/></p><p>步骤：<br/></p><p style="margin-top:0;margin-right:0;margin-bottom:0;margin-left:0;padding:0 0 0 0 ;line-height:25px"><span style=";font-family:宋体;font-size:14px">1.</span><span style=";font-family:宋体;font-size:14px"><span style="font-family:宋体">将牛奶倒入小煮锅中，小火煮沸</span></span></p><p style="margin-top:0;margin-right:0;margin-bottom:0;margin-left:0;padding:0 0 0 0 ;text-align:justify;text-justify:inter-ideograph;line-height:25px"><span style=";font-family:宋体;font-size:14px">2.</span><span style=";font-family:宋体;font-size:14px"><span style="font-family:宋体">倒入燕麦闷煮</span> 30 秒</span></p><p style="margin-top:0;margin-right:0;margin-bottom:0;margin-left:0;padding:0 0 0 0 "><span style=";font-family:宋体;font-size:14px">3.</span><span style=";font-family:宋体;color:rgb(31,33,36);font-size:14px"><span style="font-family:宋体">倒入小碗并撒入坚果即可</span></span></p><p><br/></p>
             */

            private int id;
            private int dietId;
            private String dietName;
            private String dietDetailName;
            private String energy;
            private String photoUrl;
            private String properties;
            private boolean isAbandoned;
            private String createTime;
            private int dicDietCategoryId;
            private String dicDietCategoryName;
            private boolean isRecommended;
            private int commonPrice;
            private int memberPrice;
            private String content;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public int getDietId() {
                return dietId;
            }

            public void setDietId(int dietId) {
                this.dietId = dietId;
            }

            public String getDietName() {
                return dietName;
            }

            public void setDietName(String dietName) {
                this.dietName = dietName;
            }

            public String getDietDetailName() {
                return dietDetailName;
            }

            public void setDietDetailName(String dietDetailName) {
                this.dietDetailName = dietDetailName;
            }

            public String getEnergy() {
                return energy;
            }

            public void setEnergy(String energy) {
                this.energy = energy;
            }

            public String getPhotoUrl() {
                return photoUrl;
            }

            public void setPhotoUrl(String photoUrl) {
                this.photoUrl = photoUrl;
            }

            public String getProperties() {
                return properties;
            }

            public void setProperties(String properties) {
                this.properties = properties;
            }

            public boolean isIsAbandoned() {
                return isAbandoned;
            }

            public void setIsAbandoned(boolean isAbandoned) {
                this.isAbandoned = isAbandoned;
            }

            public String getCreateTime() {
                return createTime;
            }

            public void setCreateTime(String createTime) {
                this.createTime = createTime;
            }

            public int getDicDietCategoryId() {
                return dicDietCategoryId;
            }

            public void setDicDietCategoryId(int dicDietCategoryId) {
                this.dicDietCategoryId = dicDietCategoryId;
            }

            public String getDicDietCategoryName() {
                return dicDietCategoryName;
            }

            public void setDicDietCategoryName(String dicDietCategoryName) {
                this.dicDietCategoryName = dicDietCategoryName;
            }

            public boolean isIsRecommended() {
                return isRecommended;
            }

            public void setIsRecommended(boolean isRecommended) {
                this.isRecommended = isRecommended;
            }

            public int getCommonPrice() {
                return commonPrice;
            }

            public void setCommonPrice(int commonPrice) {
                this.commonPrice = commonPrice;
            }

            public int getMemberPrice() {
                return memberPrice;
            }

            public void setMemberPrice(int memberPrice) {
                this.memberPrice = memberPrice;
            }

            public String getContent() {
                return content;
            }

            public void setContent(String content) {
                this.content = content;
            }
        }

        public static class ComponentListData {
            /**
             * id : 70
             * dietDetailId : 4
             * propertyName : 牛奶
             * propertyAmount : 250g
             * propertyCategory : 1
             */

            private int id;
            private int dietDetailId;
            private String propertyName;
            private String propertyAmount;
            private int propertyCategory;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public int getDietDetailId() {
                return dietDetailId;
            }

            public void setDietDetailId(int dietDetailId) {
                this.dietDetailId = dietDetailId;
            }

            public String getPropertyName() {
                return propertyName;
            }

            public void setPropertyName(String propertyName) {
                this.propertyName = propertyName;
            }

            public String getPropertyAmount() {
                return propertyAmount;
            }

            public void setPropertyAmount(String propertyAmount) {
                this.propertyAmount = propertyAmount;
            }

            public int getPropertyCategory() {
                return propertyCategory;
            }

            public void setPropertyCategory(int propertyCategory) {
                this.propertyCategory = propertyCategory;
            }
        }
    }
}
